package com.beiding.workordersystem.system.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;

@Setter
@Getter
@TableName("authority")
public class AuthorityEntity {
    @TableId
    private String id;

    //权限标识
    private String authority;

    //权限名称
    private String name;

    //权限描述
    private String description;

    @Override
    public int hashCode() {
        return id.hashCode();
    }

    @Override
    public boolean equals(Object obj) {
        if (obj instanceof AuthorityEntity) {
            return this.id.equals(((AuthorityEntity) obj).id);
        }
        return false;
    }
}
